package com.javastar.modules.log.controller;


import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.javastar.common.annotation.LogOperation;
import com.javastar.common.annotation.LoginUser;
import com.javastar.common.result.Result;
import com.javastar.modules.user.entity.UserEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * <p>
 * 用户操作日志表 前端控制器
 * </p>
 *
 * @author Java星球
 * @since 2023-07-25
 */
@RestController
@RequestMapping("/modules/user-operation-log-entity")
@Api(tags = "用户日志")
public class UserOperationLogController {
    @GetMapping("test")
    @ApiOperation(value = "测试接口")
    @ApiOperationSupport(order = 1)
    @LogOperation(value = "测试接口")
    public Result<UserEntity> test(@ApiIgnore @LoginUser UserEntity user) {
        return new Result<UserEntity>().ok(user);
    }
}
